package com.example.springboot.Service;

import com.example.springboot.controller.request.BaseRequset;
import com.example.springboot.entity.Borrow;
import com.example.springboot.entity.Retur;

import java.util.List;
import java.util.Map;

public interface IBorrowService {
    List<Borrow> list();

    Object page(BaseRequset baseRequset);

    Object pageRetur(BaseRequset baseRequset);

    void save(Borrow obj);

    void saveRetur(Retur obj);

    Borrow getById(Integer id);

    void update(Borrow obj);

    void deleteById(Integer id);
    void deleteReturById(Integer id);

    Map<String,Object> getCountByTimeRange(String timeRange);
}
